sourcemod/sourcepawn/compiler/tests/ok-inline-natives.sp

18 lines
366 B
SourcePawn
Raw Normal View History

2014-06-22 10:44:23 +02:00
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;
}