Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion hidescript/hidescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,20 @@ function builtinFunction(pos: number, mode: number): string {
function variableOrFunctionCall(mode: number): string {
var pos = searchIdent(ident);
if (pos < 0) {
syntaxError(ident + "が見つかりません");
if (ident == "registerBuiltinFunction") {
nextSym();
checkSym(symLParen, "(");
var arg1 = stringValue;
nextSym();
checkSym(symComma, ',');
var arg2 = stringValue;
registerBuiltinFunction(arg1, arg2);
nextSym();
checkSym(symRParen, ')');
return "0vR// " + ident + " " + arg1 + " " + arg2;
} else {
syntaxError(ident + "が見つかりません");
}
}
nextSym();
var type = wcsmidstr(identsType[pos], 0, 1);
Expand Down