以Djinni的文档为例。
它说:
# This interface will be implemented in C++ and can be called from any language.
my_cpp_interface = interface +c {
# ...
}此外,它还指出:
# This interface will be implemented in Java and ObjC and can be called from C++.
my_client_interface = interface +j +o {
# ...
}无论如何,我的情况是,我有一个可以定义客户端或C++端的对象。
因此,我想使用如下语法:
my_interface = interface +j +o +c {
# ...
}它是一个有效的语法,djinni支持的(它运行时没有错误,但我不知道生成的代码是否也是有效的)还是应该重新考虑的东西?
发布于 2016-03-25 02:28:53
是的,它工作得很好,并将为该接口生成必要的代理和封送代码,以便在任何语言中实现。
https://stackoverflow.com/questions/36206436
复制相似问题