Generate C code to check for NULL args.

This commit is contained in:
Nigel Tao committed 2017-06-02 16:49:38 +10:00
1 parent 4c0a659a18
commit 3d2040d71a
4 files changed
+65 -21

No files matched your search

+5 -4
View File
@@ -57,10 +57,11 @@ extern "C" {
typedef enum {
puffs_gif_status_ok = 0,
puffs_gif_error_bad_version = -2 + 1,
puffs_gif_error_null_receiver = -4 + 1,
puffs_gif_error_constructor_not_called = -6 + 1,
puffs_gif_status_short_dst = -8,
puffs_gif_status_short_src = -10,
puffs_gif_error_bad_receiver = -4 + 1,
puffs_gif_error_bad_argument = -6 + 1,
puffs_gif_error_constructor_not_called = -8 + 1,
puffs_gif_status_short_dst = -10,
puffs_gif_status_short_src = -12,
} puffs_gif_status;
// ---------------- Public Structs