sourcemod/sourcepawn/compiler/tests/ok-inline-natives.sp
2014-06-22 01:44:23 -07:00

18 lines
366 B
SourcePawn

methodmap Handle {
public native Handle();
public native ~Handle();
public native Handle Clone();
public native int Size();
public native float SizeF();
public native bool Ok(x, y, z);
};
public main() {
new Handle:handle = Handle();
handle.Clone();
new x = handle.Size();
new Float:f = handle.SizeF();
new bool:b = handle.Ok(1, 2, 3);
delete handle;
}