-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #457 from ZeroCM/178-zcmtype-data-members-can-have…
…-naming-collisions-with-generated-function-members Added reserved keywords
- Loading branch information
Showing
8 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <zcm/zcm-cpp.hpp> | ||
|
||
#include "types/function_name_collision_t.hpp" | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
function_name_collision_t msg; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/python | ||
|
||
blddir= os.path.dirname(os.path.realpath(__file__)) + '/../../build/examples/examples/' | ||
sys.path.insert(0, blddir + "types/") | ||
from function_name_collision_t import function_name_collision_t | ||
|
||
# declare a new msg and populate it | ||
msg = function_name_collision_t() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
struct function_name_collision_t | ||
{ | ||
boolean tmp; | ||
|
||
// Cpp | ||
// boolean encode; | ||
// boolean getEncodedSize; | ||
// boolean decode; | ||
// boolean getHash; | ||
// boolean getTypeName; | ||
// boolean _encodeNoHash; | ||
// boolean _getEncodedSizeNoHash; | ||
// boolean _decodeNoHash; | ||
// boolean _computeHash; | ||
|
||
// Java | ||
// boolean ZCM_FINGERPRINT; | ||
// boolean ZCM_FINGERPRINT_BASE; | ||
// boolean IS_LITTLE_ENDIAN; | ||
// boolean _hashRecursive; | ||
// boolean encode; | ||
// boolean _encodeRecursive; | ||
// boolean _decodeRecursiveFactory; | ||
// boolean _decodeRecursive; | ||
// boolean copy; | ||
|
||
// Node | ||
// boolean IS_LITTLE_ENDIAN; | ||
// boolean __hash; | ||
|
||
// Python | ||
// boolean __init__; | ||
// boolean encode; | ||
// boolean _encode_one; | ||
// boolean decode; | ||
// boolean _decode_one; | ||
// boolean _hash; | ||
// boolean _get_hash_recursive; | ||
// boolean _packed_fingerprint; | ||
// boolean _get_packed_fingerprint; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters