• Guy Nicholas's avatar
    *** POTENTIAL BREAKING CHANGE *** · 06cdb828
    Guy Nicholas authored
    When extending a record using the +c or +o option the resultant Objective C code includes/imports the subclass assuming it is one level above the generated source. i.e.
    #include "../myExtendedRecord.h"
    To make the code positioning more flexible a pair of options were added to allow the developer to indicate the path prefix:
    cpp-extended-record-include-prefix
    objc-extended-record-include-prefix
    
    To use these options you would write something like this:
    djinni/src/run \
    --cpp-extended-record-include-prefix "path_to_my_src/"
    
    doing this will result in an include of the form:
    #include "path_to_my_src/myExtendedRecord.h"
    
    The breaking change part of this is that the default is now no path, so if you are now not compiling, you probably just need to add the following to your djinni run command
    --cpp-extended-record-include-prefix "../"
    06cdb828
ObjcppGenerator.scala 15.4 KB