ircmaxell / FFIMe

A FFI Wrapper library and header parser!
MIT License
138 stars 5 forks source link

Missing int_ptr classes #4

Closed jgmdev closed 5 years ago

jgmdev commented 5 years ago

I'm playing around with IUP (a gui toolkit written in C which seems a nice test case for this generator) and the library uses references to integers, below code is needed here:

$class = array_merge($class, $this->compileDeclClassImpl('int_ptr', 'int*', $className));
$class = array_merge($class, $this->compileDeclClassImpl('int_ptr_ptr', 'int**', $className));
$class = array_merge($class, $this->compileDeclClassImpl('int_ptr_ptr_ptr', 'int***', $className));
ircmaxell commented 5 years ago

Thanks for the report!

I'll get a fix pushed out in the next few days (should be easy, but will do when I get to a computer)...