mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
module_util: make GLOBAL_MODULE_NAME constexpr
This allows the compiler to hard-code pointers to the string without looking up a global variable at runtime.
This commit is contained in:
parent
f1908b6212
commit
0548e1255f
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
static const char* GLOBAL_MODULE_NAME = "GLOBAL";
|
||||
static constexpr const char* GLOBAL_MODULE_NAME = "GLOBAL";
|
||||
|
||||
extern std::string extract_module_name(const char* name);
|
||||
extern std::string extract_var_name(const char* name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue