mirror of
https://github.com/firebase/nanopb
synced 2026-11-11 22:45:58 +05:45
Removed PB_OLD_CALLBACK_STYLE. Added generator option submsg_callback to have a message-level callback for setting up callbacks inside oneofs. Added example/testcase about using callbacks with oneofs.
12 lines
299 B
Python
12 lines
299 B
Python
# Regression test for #342:
|
|
# Possible null-pointer dereference in pb_decode.c
|
|
|
|
Import("env")
|
|
|
|
env.NanopbProto("extensions")
|
|
testprog = env.Program(["test_extensions.c", "extensions.pb.c",
|
|
'$COMMON/pb_decode.o', '$COMMON/pb_encode.o', '$COMMON/pb_common.o'])
|
|
|
|
env.RunTest(testprog)
|
|
|