Hey guys,

When using an importcpp type in nim, like for example inside of seq[ptr 
FProperty] Nim will create a type definition for it in a std_sequtils like so:
    
    
    struct tySequence__bf9bej5tmhu1mP9cYV1b81kw_Content { NI cap; FProperty* 
data[SEQ_DECL_SIZE];};
    
    
    
    
    Run

And it will put what's in the header pragma at the top, like so:
    
    
    #include "nimbase.h"
    #include "Definitions.NimForUEBindings.h"
    #include "UEDeps.h"
    
    
    
    Run

The problem is that it adds it below nimbase.h and that causes conflict on 
Windows with the Unreal headers. For the rest of the files (non std) we just 
use emit / _INCLUDESECTION_ / which results on:
    
    
    /*INCLUDESECTION*/
    #include "Definitions.NimForUEBindings.h"
    #include "UEDeps.h"
    
    
    #include "nimbase.h"
    
    
    
    Run

So the question is, is it possible to use emit on the std? or there is 
something like INCLUDESECTION for the header pragma? Or any other workaround 
that allows to alter the order or even if nimbase is emitted at all for certain 
files?

Thanks,

Juan

Reply via email to