Commit f7a9f38d authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-2739] Permitir modo interativo do 'busconsole' e 'busadmin'

- Correção para que a versão apresente o sufixo '-DEBUG' quando em modo de debug (parametro DEBUG).


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/trunk@161249 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 3dc83824
......@@ -39,14 +39,14 @@ static int pmain (lua_State *L) {
int debugmode = argv[0] && argv[1] && strcmp(argv[1], "DEBUG") == 0;
int status;
luapreload_extralibraries(L);
#ifdef OPENBUS_CODEREV
lua_pushliteral(L, OPENBUS_CODEREV);
lua_setglobal(L, "OPENBUS_CODEREV");
#endif
status = openbuslua_init(L, 1, debugmode);
if (status == LUA_OK) {
lua_pushliteral(L, OPENBUS_PROGNAME);
lua_setglobal(L, "OPENBUS_PROGNAME");
#ifdef OPENBUS_CODEREV
lua_pushliteral(L, OPENBUS_CODEREV);
lua_setglobal(L, "OPENBUS_CODEREV");
#endif
lua_pushstring(L, OPENBUS_MAIN);
lua_setglobal(L, "OPENBUS_MAIN");
lua_pushstring(L, argv[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment