medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 39b1ddd71b6580ad873b24a9c3d110f49a2587d8
parent d65d602be2a96759b29ac3d6bf2f771f71ca2a0a
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Aug 16 19:33:02 +0200

Make worker callback static

Diffstat:
hm.cc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hm.cc b/hm.cc @@ -46,10 +46,11 @@ void print_vec3( const std::string & name, const glm::vec3 & v ) { glm::mat4 P( glm::perspective( glm::radians( 120.0f ), 640.0f / 480.0f, 0.1f, 10000.0f ) ); -WORK_QUEUE_CALLBACK( testwq ) { +static WORK_QUEUE_CALLBACK( testwq ) { u32 i = *( u32 * ) data; printf( "the thread got called %u\n", i ); } + extern "C" GAME_INIT( game_init ) { state->pos = glm::vec3( 15000, 3000, 50 ); state->angles = glm::vec3( glm::radians( glm::vec3( -90, 45, 0 ) ) );