I got a bit frustrated and ended up searching the source for 
‘[\w]opt[[:upper]]’ to find all NativeBoost options. Some of those options are 
in fact undocumented:

optMayGC
optProxyLabels
optCdecl
optReturnNullAsNil
optStdcall
optNonMovable
optReserveCallgateSpace
optDebug
optNoAlignment
optEmitCall
optNoCleanup
optCheckFailOnEveryArgument
optStringOrNull
WinUnicode

NBFFICallout>>defaultOptions documents most options but refers to 
NBFFICallout>>allOptions, wich does not exist. Most of the above options can be 
considered internal, I guess, but the one option I needed (‘optStringOrNull’) 
isn’t documented anywhere. I had to step through the execution to find out why 
my function call wasn’t working (because I was trying to use 
‘optCoerceNilToNull’ and didn’t know that strings need a special option).

I’d be very thankful if these options would be included in the documentation.

Note: ‘WinUnicode’ is used by the Windows code in a couple of places, even 
though the option name is not valid, according to NBNativeCodeGen>>parseOptions:

Cheers,
Max

Reply via email to