Skip to content

Commit

Permalink
增加TriggerWaitForSound、SyncSelections、TriggerSyncReady的过滤 || (0 == str…
Browse files Browse the repository at this point in the history
…cmp(name, "TriggerSyncReady")) || (0 == strcmp(name, "SyncSelecti
  • Loading branch information
actboy168 committed Feb 12, 2014
1 parent a925cb3 commit 79eeb59
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ namespace base { namespace warcraft3 { namespace lua_engine {
int jass_call_null_function(lua_State* L)
{
jassbind* lj = (jassbind*)L;
printf("Wanring: %s\n", lj->tostring(lua_upvalueindex(1)));
printf("Wanring: %s isn't implemented.\n", lj->tostring(lua_upvalueindex(1)));
lj->pushnil();
return 1;
}
Expand Down Expand Up @@ -182,12 +182,17 @@ namespace base { namespace warcraft3 { namespace lua_engine {

const char* name = lj->tostring(2);

uintptr_t vm = get_jass_virtual_machine();

jass::func_value const* nf = jass::jass_func(name);
if (nf && nf->is_valid())
{
if (0 == strcmp(name, "TriggerSleepAction"))
if ((0 == strcmp(name, "TriggerSleepAction"))
|| (0 == strcmp(name, "TriggerWaitForSound"))
|| (0 == strcmp(name, "TriggerSyncReady"))
|| (0 == strcmp(name, "SyncSelections")))
{
lj->pushstring("TriggerSleepAction isn't implemented.");
lj->pushstring(name);
lj->pushcclosure((lua::state::cfunction)jass_call_null_function, 1);
return 1;
}
Expand Down

0 comments on commit 79eeb59

Please sign in to comment.