defbodyName(ident:String):String=idObjc.ty(ident)+"."+spec.objcppExt// Must be a Obj-C++ file in case the constants are not compile-time constant expressions
defbodyName(ident:String):String=idObjc.ty(ident)+"."+spec.objcppExt// Must be a Obj-C++ file in case the constants are not compile-time constant expressions
@@ -176,9 +172,9 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {
...
@@ -176,9 +172,9 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {
arcAssert(w)
arcAssert(w)
w.wl
w.wl
wrapNamespace(w,spec.objcppNamespace,w=>{
wrapNamespace(w,spec.objcppNamespace,w=>{
w.wl(s"class $helperClass::$objcExtSelf final")
w.wl(s"class $helperClass::ObjcProxy final")
w.wl(s": public $cppSelf")
w.wl(s": public $cppSelf")
w.wl(s", public ::djinni::DbxObjcWrapperCache<$objcExtSelf>::Handle")// Use base class to avoid name conflicts with user-defined methods having the same name as this new data member
w.wl(s", public ::djinni::DbxObjcWrapperCache<ObjcProxy>::Handle")// Use base class to avoid name conflicts with user-defined methods having the same name as this new data member
w.bracedSemi{
w.bracedSemi{
w.wlOutdent("public:")
w.wlOutdent("public:")
w.wl("using Handle::Handle;")
w.wl("using Handle::Handle;")
...
@@ -199,13 +195,13 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {
...
@@ -199,13 +195,13 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {