1pass.c
changeset 16 f5a7ede6c1f3
parent 15 e2973f4fb366
child 17 e884dbb403cc
equal deleted inserted replaced
15:e2973f4fb366 16:f5a7ede6c1f3
   364     } // for
   364     } // for
   365     lua_setglobal(luaState, "argv");
   365     lua_setglobal(luaState, "argv");
   366 
   366 
   367     // Transfer control to Lua...
   367     // Transfer control to Lua...
   368     if (luaL_dofile(luaState, "1pass.lua") != 0)
   368     if (luaL_dofile(luaState, "1pass.lua") != 0)
   369     {
   369         luaFatal(luaState);
   370         const char *msg = lua_tostring(luaState, -1);
       
   371         fprintf(stderr, "1pass.lua didn't run: %s\n", msg);
       
   372         lua_pop(luaState, 1);
       
   373         return 0;
       
   374     } // if
       
   375 
   370 
   376     return 1;
   371     return 1;
   377 } // initLua
   372 } // initLua
   378 
   373 
   379 
   374