erl interface question (ERL_ATOM macros)
olivier
olivier@REDACTED
Fri Jul 22 11:10:57 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have a C++/C node that does an rpc call in a module.
The function returns the atoms true or false.
This piece of code:
if (ERL_ATOM_SIZE(result) == 4) // true
... do things ...
Does not work unless i add something that uses ERL_ATOM_PTR, like:
cout << "Atom :" << ERL_ATOM_PTR(result) << endl;
or unsigned char *foo = ERL_ATOM_PTR(result);
Before the "if" test. Is it a bug (i'm using R10B-5, debian)
or did i miss something ?
Thanks in advance,
- --
Olivier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC4LghpqVXaJzJYNIRAuFLAJ4lh8lPCzNUPx6RvEPHyOCncDUyqQCfaG3J
Nw+FeIGcZK2hxG37p5lTCSY=
=tq//
-----END PGP SIGNATURE-----
More information about the erlang-questions
mailing list