Skip to content

Instantly share code, notes, and snippets.

@waneck
Created July 2, 2019 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waneck/4dbe2e8a59128a5228c26f0f17106894 to your computer and use it in GitHub Desktop.
Save waneck/4dbe2e8a59128a5228c26f0f17106894 to your computer and use it in GitHub Desktop.
hxcpp cppia bug
-main Main
-cpp cpp
-D scriptable
-dce no
--next
-cpp cppia.cppia
-D cppia
-debug
Test2
import Test;
class Main {
static function main() {
trace("loading cppia");
untyped __global__.__scriptable_load_cppia(sys.io.File.getContent("cppia.cppia"));
var t3:Test = Type.createInstance(Type.resolveClass('Test2'), []);
t3.doTest(15);
}
}
class Test {
public function new() {
}
public function doTest(float:cpp.Float32) {
trace('doTest',float);
}
}
import Test;
class Test2 extends Test {
override public function doTest(float:cpp.Float32) {
trace('doTest cppia',float);
super.doTest(float);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment