static scene_t* nbglAttemptConnectSharedScene(void) { scene_t* scene = (scene_t*) mw_graphics_get_shmem(NBODY_BIN_NAME); if (!scene) { mw_printf("Failed to connect to shared scene\n"); } return scene; }
/* Returns TRUE if connection succeeds */ static int attemptConnectSharedScene() { scene = (scene_t*) mw_graphics_get_shmem(NBODY_BIN_NAME); if (!scene) { warn("Failed to connect to shared scene\n"); return FALSE; } return TRUE; }