|
From: | Joel Bodenmann |
Subject: | Re: [Tinycc-devel] tcc_add_symbol with macros |
Date: | Sun, 17 Jul 2016 14:48:44 +0200 |
Hello David, Thank you very much for your answer, I appreciate it a lot. The method you described works well. At the end, I ended up “out-sourcing” everything into a header file and including that in the consuming code (a simple #include in the code that gets compiled by libtcc). I appreciate your offer to work something out for the interface but that’s no longer needed. Everything works now as expected :) Best regards, ~ Joel From: Tinycc-devel [mailto:address@hidden On Behalf Of David Mertens Hello Joel, As I understand it, tcc_add_symbol only adds things that can be pointed to. In your case, gdispClear is not something that can be pointed to, it's just a macro, i.e. an instruction to the compiler on how to produce C code. Functions and global variables can be pointed to, so they are the appropriate targets for tcc_add_symbol. You should add those. David On Thu, Jul 14, 2016 at 1:38 PM, Joel Bodenmann <address@hidden> wrote:
"Debugging is twice as hard as writing the code in the first place. |
[Prev in Thread] | Current Thread | [Next in Thread] |