[WIP] initial attempt to set up eit macro translation#28
[WIP] initial attempt to set up eit macro translation#28
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #28 +/- ##
=========================================
- Coverage 6.47% 5.29% -1.19%
=========================================
Files 8 8
Lines 4342 4310 -32
=========================================
- Hits 281 228 -53
- Misses 4061 4082 +21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
struct igraph_eit_t this is immutable right |
|
You can use backtics ``` to format your code in comments to make it easier to understand. I am not sure what you mean by "macros can not work on it". Julia and C macros just transform syntax, nothing more. So if you have symbol in your code corresponding to something, macros can be applied to that symbol to modify it into a different expression (before the compiler touches these expressions). Maybe you are referring that Julia immutable objects are stack allocated so you do not really have a pointer that you can provide to a C function that is meant to act on them. That is true, and it might indeed cause you trouble. But the C macros we were discussing had to be translated manually to julia functions anyway, so that should not be a problem. The julia code can do whatever it wants to Julia structures, mutable or not. If you have questions, could you provide a bigger, more complete snippet of code describing what you have tried. |
|
No description provided.