Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
b4f335b9
Commit
b4f335b9
authored
Mar 25, 2015
by
Miro Knejp
Committed by
Jacob Potter
May 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always fully qualify the djinni namespace
parent
5fb9e457
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/source/ObjcppGenerator.scala
src/source/ObjcppGenerator.scala
+3
-3
No files found.
src/source/ObjcppGenerator.scala
View file @
b4f335b9
...
...
@@ -143,7 +143,7 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {
w
.
wl
w
.
wl
(
s
"@interface $self ()"
)
w
.
wl
w
.
wl
(
s
"@property (nonatomic, readonly) djinni::DbxCppWrapperCache<$cppSelf>::Handle cppRef;"
)
w
.
wl
(
s
"@property (nonatomic, readonly)
::
djinni::DbxCppWrapperCache<$cppSelf>::Handle cppRef;"
)
w
.
wl
w
.
wl
(
s
"- (id)initWithCpp:(const std::shared_ptr<$cppSelf>&)cppRef;"
)
w
.
wl
...
...
@@ -157,7 +157,7 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {
w
.
wl
w
.
wl
(
s
"auto $helperClass::fromCpp(const CppType& cpp) -> ObjcType"
)
w
.
braced
{
w
.
wl
(
s
"return !cpp ? nil : djinni::DbxCppWrapperCache<$cppSelf>::getInstance()->get(cpp, [] (const auto& p)"
).
bracedEnd
(
");"
)
{
w
.
wl
(
s
"return !cpp ? nil :
::
djinni::DbxCppWrapperCache<$cppSelf>::getInstance()->get(cpp, [] (const auto& p)"
).
bracedEnd
(
");"
)
{
w
.
wl
(
s
"return [[$self alloc] initWithCpp:p];"
)
}
}
...
...
@@ -222,7 +222,7 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {
w
.
wl
w
.
wl
(
s
"auto $helperClass::toCpp(ObjcType objc) -> CppType"
)
w
.
braced
{
w
.
wl
(
s
"return objc ? djinni::DbxObjcWrapperCache<$objcExtSelf>::getInstance()->get(objc) : nullptr;"
)
w
.
wl
(
s
"return objc ?
::
djinni::DbxObjcWrapperCache<$objcExtSelf>::getInstance()->get(objc) : nullptr;"
)
}
w
.
wl
w
.
wl
(
s
"auto $helperClass::fromCpp(const CppType& cpp) -> ObjcType"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment