sourcemod/sourcepawn/compiler/tests/ok-method-on-ref.sp
2014-11-09 13:01:35 -08:00

17 lines
158 B
SourcePawn

native CloseHandle(Handle:handle);
methodmap Handle {
public Close() = CloseHandle;
};
f(&Handle:x)
{
x.Close()
}
public main()
{
new Handle:x;
f(x)
}