note 124774 added to ffi.cdef

From: Date: Thu, 27 Feb 2020 22:33:19 +0000
Subject: note 124774 added to ffi.cdef
Groups: php.notes 
Request: Send a blank email to php-notes+get-214246@lists.php.net to get a copy of this message
You'll probably want to add a C header file, but as of the current version preprocessor directives do not work... so what do? On systems with GCC run the file through this command: cpp -P /usr/include/unprocessedheader.h -o myprettyheader.h Note that because preprocessing is not suppored in FFI, C/C++ macros are not supported either. You'll probably still have to write a small wrapper in C unless your library has an exceedingly simple public API. ---- Server IP: 45.112.84.4 Probable Submitter: 38.142.137.34 (proxied: 75.140.38.137) ---- Manual Page -- http://php.net/manual/en/ffi.cdef.php Edit -- https://master.php.net/note/edit/124774 Del: integrated -- https://master.php.net/note/delete/124774/integrated Del: useless -- https://master.php.net/note/delete/124774/useless Del: bad code -- https://master.php.net/note/delete/124774/bad+code Del: spam -- https://master.php.net/note/delete/124774/spam Del: non-english -- https://master.php.net/note/delete/124774/non-english Del: in docs -- https://master.php.net/note/delete/124774/in+docs Del: other reasons-- https://master.php.net/note/delete/124774 Reject -- https://master.php.net/note/reject/124774 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214246) next »