13 lines
226 B
SourcePawn
13 lines
226 B
SourcePawn
|
native Handle:CreateHandle(count);
|
||
|
native CloseHandle(Handle:handle);
|
||
|
|
||
|
methodmap Handle {
|
||
|
public Handle() = CreateHandle;
|
||
|
public ~Handle() = CloseHandle;
|
||
|
};
|
||
|
|
||
|
public main() {
|
||
|
new Handle:handle = Handle(3);
|
||
|
delete handle;
|
||
|
}
|