コード例 #1
0
ファイル: bootstrap.cpp プロジェクト: admdly/CorsixTH
int Bootstrap_lua_error_report(lua_State *L)
{
    int iLine = -g_iBootstrapCodeLineNumStart;
    if(luaT_load(L, read_bootstrap_line, &iLine, "@bootstrap.cpp", "t") == 0)
    {
        Bootstrap_lua_resources(L);
        lua_pushvalue(L, 1);
        lua_call(L, 4, 0);
        return 0;
    }
    else
        return lua_error(L);
}
コード例 #2
0
ファイル: bootstrap.cpp プロジェクト: CorsixTH/CorsixTH
int bootstrap_lua_error_report(lua_State *L)
{
    int iLine = -first_bootstrap_code_line_number;
    if(luaT_load(L, read_bootstrap_line, &iLine, "@bootstrap.cpp", "t") == 0)
    {
        bootstrap_lua_resources(L);
        lua_pushvalue(L, 1);
        lua_call(L, 4, 0);
        return 0;
    }
    else
        return lua_error(L);
}