Home | History | Annotate | Download | only in test

Lines Matching full:userdata

14 /* Flag indicating if the userdata should be checked */
17 /* Userdata value to check */
23 /* Userdata values for event */
27 /* Event filter that sets some flags and optionally checks userdata */
28 int _events_sampleNullEventFilter(void *userdata, SDL_Event *event)
33 SDLTest_AssertCheck(userdata != NULL, "Check userdata pointer, expected: non-NULL, got: %s", (userdata != NULL) ? "non-NULL" : "NULL");
34 if (userdata != NULL) {
35 SDLTest_AssertCheck(*(int *)userdata == _userdataValue, "Check userdata value, expected: %i, got: %i", _userdataValue, *(int *)userdata);
77 * @brief Adds and deletes an event watch function with NULL userdata
94 /* Disable userdata check */
127 * @brief Adds and deletes an event watch function with userdata
144 /* Enable userdata check and set a value to check */
185 { (SDLTest_TestCaseFp)events_addDelEventWatch, "events_addDelEventWatch", "Adds and deletes an event watch function with NULL userdata", TEST_ENABLED };
188 { (SDLTest_TestCaseFp)events_addDelEventWatchWithUserdata, "events_addDelEventWatchWithUserdata", "Adds and deletes an event watch function with userdata", TEST_ENABLED };