Re: Thunk generator

Robert Jordan <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
On 13.11.2015 13:24, Evgeny Pirogov wrote:
> Hello, Robert Jordan.
>
> Look like your utility make c++ code on the fly. Is it only generate .h
> files? Where code for C++ generation located in the project?

It generates both C/C++ and H files but not on the fly.
You have to generate the thunks in advance.

The code is in this project:

https://github.com/robert-j/Mono.Embedding/tree/master/Mono.Embedding.ThunkTool

in Program.cs. It's basic reflection stuff.

You can see it in action when you compile the whole solution
and run it on Mono.Embedding.dll [1].


Robert

[1] The Mono.Embedding assembly is providing APIs missing from
Mono's native embedding APIs (generics & implementing
delegates in C/C++).


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.