Function.hx 577 B

1234567891011121314151617181920
  1. package cpp;
  2. @:coreType @:structAccess @:include("cpp/Pointer.h")
  3. extern class Function<T>
  4. {
  5. // Actually a function pointer, but can be called using haxe notation
  6. public var call(default,null):T;
  7. public static function getProcAddress<T>(inModule:String, inFunction:String) : Function<T>;
  8. public static function fromStaticFunction<T>(inStaticFunction:T) : Function<T>;
  9. public function lt(inOther:Function<T>):Bool;
  10. public function leq(inOther:Function<T>):Bool;
  11. public function gt(inOther:Function<T>):Bool;
  12. public function geq(inOther:Function<T>):Bool;
  13. }