aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r--src/MenuCreator.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index 46f233d..3b7667a 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -236,6 +236,7 @@ createMenu_(FbTk::Menu &inject_into, lua::state &l, FbTk::StringConvertor &conv,
236void 236void
237insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_conv, 237insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_conv,
238 FbTk::AutoReloadHelper *reloader) { 238 FbTk::AutoReloadHelper *reloader) {
239 _FB_USES_NLS;
239 lua::stack_sentry s(l, -1); 240 lua::stack_sentry s(l, -1);
240 l.checkstack(1); 241 l.checkstack(1);
241 242
@@ -351,6 +352,7 @@ MenuCreator::createMenu(FbTk::Menu &inject_into, lua::state &l, FbTk::AutoReload
351 lua::stack_sentry s(l, -1); 352 lua::stack_sentry s(l, -1);
352 353
353 if(l.type(-1) != lua::TTABLE) { 354 if(l.type(-1) != lua::TTABLE) {
355 _FB_USES_NLS;
354 cerr << _FB_CONSOLETEXT(Menu, MenuNotTable, "Warning: Menu is not a lua table", 356 cerr << _FB_CONSOLETEXT(Menu, MenuNotTable, "Warning: Menu is not a lua table",
355 "Menu is not a lua table") << endl; 357 "Menu is not a lua table") << endl;
356 return; 358 return;