Re: New SWIG python user with a quick question
William S Fulton <[email protected]> Mon, 11 Mar 2024 18:54:10 +0000
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <CANGqftAPbQ18Ve9D0tefi95hz_kSwAdYSvJAhh8GHRpa4GJcKg@mail.gmail.com> |
--===============7717062402568193387== Content-Type: multipart/alternative; boundary="00000000000052ba9806136713a6" --00000000000052ba9806136713a6 Content-Type: text/plain; charset="UTF-8" On Sat, 2 Mar 2024 at 08:40, marksibly via Swig-user < [email protected]> wrote: > > All functions are consistently prefixed with sgd_ and all types and macros > with SGD_ (there are actually only the int handle types right now - would > SGD_Bool, SGD_Int be a problem?). > > As long as the typedef for SGD_Int is fed into SWIG, like it is needed for a C compiler, SWIG will treat it as the appropriate C type. Oh, one other quicky: is it possible to generate wrappers for Javascript in > a node.js environment? > > Yes, please read the Javascript chapter in the manual - https://swig.org/Doc4.2/Javascript.html. William --00000000000052ba9806136713a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Sat, 2 Mar 2024 at 08:40, marksibl= y via Swig-user <<a href=3D"mailto:[email protected]">swig= [email protected]</a>> wrote:<br></div><blockquote class=3D"gm= ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,= 204,204);padding-left:1ex"><u></u><div><div style=3D"font-family:Verdana,Ar= ial,Helvetica,sans-serif;font-size:10pt"><br><div>All functions are consist= ently prefixed with sgd_ and all types and macros with SGD_ (there are actu= ally only the int handle types right now - would SGD_Bool, SGD_Int be a pro= blem?).<br></div><div><br></div></div></div></blockquote><div><br></div><di= v>As long as the typedef for SGD_Int is fed into SWIG, like it is needed fo= r a C compiler, SWIG will treat it as the appropriate C type.</div><br><blo= ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left= :1px solid rgb(204,204,204);padding-left:1ex"><div><div style=3D"font-famil= y:Verdana,Arial,Helvetica,sans-serif;font-size:10pt"><div></div><div>Oh, on= e other quicky: is it possible to generate wrappers for Javascript in a nod= e.js environment?<br></div><div></div></div></div><br></blockquote><div><br= ></div><div>Yes, please read the Javascript chapter in the manual - <a href= =3D"https://swig.org/Doc4.2/Javascript.html">https://swig.org/Doc4.2/Javasc= ript.html</a>.</div><div><br></div><div>William <br></div></div></div> --00000000000052ba9806136713a6-- --===============7717062402568193387== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7717062402568193387== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Swig-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/swig-user --===============7717062402568193387==--