From d40c8dfa03ed4735299963c2dc51b189cef91e4d Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 29 Oct 2015 12:04:39 -0400 Subject: builtin_void --- src/map/script-fun.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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'), -- cgit v1.2.3-60-g2f50