Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/cJSON/blob/master/tests/unity/test/testdata/cmock.h # cJSON [Ported from github.com/DaveGamble/cJSON] Fix: heap-use-after-free in merge_patch when patch is subtree of target (#1065) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `cJSON / tests / unity / test / testdata / cmock.h` 14 lines ยท 452 bytes Raw Blame History 1 #ifndef CMOCK_H 2 #define CMOCK_H 3 4 int CMockMemFreeFinalCounter = 0; 5 int mockMock_Init_Counter = 0; 6 int mockMock_Verify_Counter = 0; 7 int mockMock_Destroy_Counter = 0; 8 9 void CMock_Guts_MemFreeFinal(void) { CMockMemFreeFinalCounter++; } 10 void mockMock_Init(void) { mockMock_Init_Counter++; } 11 void mockMock_Verify(void) { mockMock_Verify_Counter++; } 12 void mockMock_Destroy(void) { mockMock_Destroy_Counter++; } 13 14 #endif //CMOCK_H