diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-10-29 12:04:39 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-15 11:47:05 -0400 |
commit | d40c8dfa03ed4735299963c2dc51b189cef91e4d (patch) | |
tree | 6e5eeea354f978403ddbfebd2e735ae953e095ac | |
parent | 7b3453a4e1c3bb7c0d7dcc0c8b075f8bbdb8e65b (diff) | |
download | tmwa-d40c8dfa03ed4735299963c2dc51b189cef91e4d.tar.gz tmwa-d40c8dfa03ed4735299963c2dc51b189cef91e4d.tar.bz2 tmwa-d40c8dfa03ed4735299963c2dc51b189cef91e4d.tar.xz tmwa-d40c8dfa03ed4735299963c2dc51b189cef91e4d.zip |
builtin_void
-rw-r--r-- | src/map/script-fun.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index ccf8f11..fb9d1e3 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -229,6 +229,12 @@ void builtin_getarg(ScriptState *st) push_copy(st->stack, (st->defsp - 4 - i) + arg); } +static +void builtin_void(ScriptState *) +{ + return; +} + /*========================================== * サブルーティンの呼び出し *------------------------------------------ @@ -4317,7 +4323,8 @@ BuiltinFunction builtin_functions[] = BUILTIN(call, "F?*"_s, '.'), BUILTIN(callsub, "L"_s, '\0'), BUILTIN(getarg, "i"_s, '.'), - BUILTIN(return, "?*"_s, '\0'), + BUILTIN(return, "?"_s, '\0'), + BUILTIN(void, "?*"_s, '\0'), BUILTIN(next, ""_s, '\0'), BUILTIN(close, ""_s, '\0'), BUILTIN(close2, ""_s, '\0'), |