[Mono-dev] add_internal_call with int32
vargaz at gmail.com
Mon Apr 30 15:06:26 UTC 2018
c# int is mapped to c int on all systems.
On Mon, Apr 30, 2018 at 11:05 AM, pierre <pierre.saunier at ppmodeler.com>
> I am having trouble with the following code:
> static extern private void mono_testObj_fromInts(object testObj,
> Int32 from);
> public void fromInts(Int32 from)
> mono_testObj_fromInts(this, (Int32)from);
> and in the embedder:
> when run, I got the error:
> An exception was thrown when calling Script:Main: (System.MissingMethodException)
> Attempted to access a missing method.
> at (wrapper managed-to-native) testObj.mono_testObj_fromInts(
> of course, if I change the mono_add_internal_call to use int it is
> working... but, if I do that, and if I have understood properly, on some
> systems, int is mapped to int32_t and on other to int64_t.
> How can I make the mono_add_internal_call to work with int or int32 or
> Mono-devel-list mailing list
> Mono-devel-list at lists.dot.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list