private foreign handler c_CGRectMake(in pX as NaturalFloat,in pY as NaturalFloat, in pW as NaturalFloat, in pH as NaturalFloat ) returns NSRect binds to "c:CoreFoundation.framework>CGRectMake"
MCEngineAddRunloopAction(in pCallback as MCRunloopActionCallback, in pContext as optional Pointer, out rAction as MCRunloopActionRef) returns CBool binds to "<builtin>"
MCEngineRemoveRunloopAction(in pAction as MCRunloopActionRef) returns nothing binds to "<builtin>"
handler MCEngineRunloopWait() returns CBool binds to "<builtin>"
foreign handler MCEngineRunloopBreakWait() returns nothing binds to "<builtin>"
This doesn't seem to work for me:
if tPointerA is tPointerB then
When I log the contents of the two variables of type Pointer they are identical:
["Next Pointer=", <foreign pointer 0x7fac7c796260>, "Current Pointer =", <foreign pointer 0x7fac7c796260>]
Is there a way in LCB to compare two pointers to determine if they point to the same block of memory?
I looked at foundation.h header file but didn't notice anything like "MCPointerIsPointer()" that could be applicable.
Or maybe there's a way to dereference or coerce Pointers into another type that I can compare?
I think a way to convert Pointers to / from a String or a Number would be very useful in a few situations.
into an API call or
out? The lc-winsparkle repo in my Github account has some examples of using w_char_t with
in. Search this page for instances of w_char_t and then you can see the definitions in LCB by finding the foreign handler definition on this page: https://github.com/trevordevore/lc-winsparkle/blob/master/winsparkle.lcb
MCStringCreateWithWString(const unichar_t *wstring, MCStringRef& r_string);