it seems used in gf demo

This commit is contained in:
Pawel Kolodziejski 2009-06-27 19:45:27 +00:00
parent 2c80785778
commit 02477fc3b2

View File

@ -34,9 +34,6 @@ void start_script() {
LState *state = luaM_new(LState);
lua_stateinit(state);
if (type == LUA_T_CPROTO)
assert(0); // TODO verify if used
state->next = lua_state->next;
state->prev = lua_state;
if (state->next)
@ -119,8 +116,6 @@ void stop_script() {
if (type == LUA_T_PROTO) {
match = (state->taskFunc.ttype == type && tfvalue(&state->taskFunc) == tfvalue(Address(paramObj)));
} else {
// TODO - verify if used
assert(0);
match = (state->taskFunc.ttype == type && fvalue(&state->taskFunc) == fvalue(Address(paramObj)));
}
if (match && state != lua_state) {
@ -179,8 +174,6 @@ void find_script() {
if (type == LUA_T_PROTO) {
match = (state->taskFunc.ttype == type && tfvalue(&state->taskFunc) == tfvalue(Address(paramObj)));
} else {
// TODO - verify if used
assert(0);
match = (state->taskFunc.ttype == type && fvalue(&state->taskFunc) == fvalue(Address(paramObj)));
}
if (match) {