Prev | Current Page 1017 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


??‘
??‘
??‘
??‘
??‘
??‘
??‘
??‘
Extending ha X e with C/C++
The Neko Virtual Machine is very powerful, and the complete haXe framework does provide an
incredibly large number of features suitable for most application requirements. That doesn ??™ t mean,
however, that it caters to all of your programming needs. If you require features in haXe for your
desktop or server - side logic, you prefer specific optimized code, or you simply like extending
languages, then you ??™ ll need to get your hands dirty with a little C or C++ development. In this
chapter, you ??™ ll do just that by taking a look at the following:
What required files are needed by the compiler for building Neko libraries
How to expose C/C++ functions in a dynamic library for inclusion in Neko
How to convert data types between Neko and C/C++
How to deal with pointers to unsupported Neko types
How to handle errors in your code
How to make explicit use of the garbage collector
Neko Libraries
To facilitate custom libraries in C/C++, Neko provides a C foreign function interface, or C FFI.


Pages:
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029