Major string_view refactor. Added namespace sv
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "wrap-string.hpp"
|
||||
#include "wrap-map.hpp"
|
||||
#include "wrap-vector.hpp"
|
||||
|
||||
#include "util.hpp"
|
||||
#include "gui.hpp"
|
||||
#include "luastack.hpp"
|
||||
|
||||
@@ -62,7 +62,7 @@ LuaDefine(gui_menu_item, "action,label", "add a menu item to the current gui") {
|
||||
LuaStack LS(L, laction, llabel);
|
||||
eng::string action = LS.ckstring(laction);
|
||||
eng::string label = LS.ckstring(llabel);
|
||||
if (!util::has_prefix(action, "cb_")) {
|
||||
if (!sv::has_prefix(action, "cb_")) {
|
||||
luaL_error(L, "menuitem callbacks must start with cb_");
|
||||
}
|
||||
gui->menu_item(action, label);
|
||||
|
||||
Reference in New Issue
Block a user