summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-10-29 12:04:39 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-15 11:47:05 -0400
commitd40c8dfa03ed4735299963c2dc51b189cef91e4d (patch)
tree6e5eeea354f978403ddbfebd2e735ae953e095ac
parent7b3453a4e1c3bb7c0d7dcc0c8b075f8bbdb8e65b (diff)
downloadtmwa-d40c8dfa03ed4735299963c2dc51b189cef91e4d.tar.gz
tmwa-d40c8dfa03ed4735299963c2dc51b189cef91e4d.tar.bz2
tmwa-d40c8dfa03ed4735299963c2dc51b189cef91e4d.tar.xz
tmwa-d40c8dfa03ed4735299963c2dc51b189cef91e4d.zip
builtin_void
-rw-r--r--src/map/script-fun.cpp9
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'),