/[Sims3RigEditor]/trunk/gr2lib_cpp/GrannyAPILogger.cpp
ViewVC logotype

Diff of /trunk/gr2lib_cpp/GrannyAPILogger.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by william, Fri Jul 30 00:28:19 2010 UTC revision 7 by william, Sat Jul 31 01:44:00 2010 UTC
# Line 1  Line 1 
1  #include "StdAfx.h"  #include "StdAfx.h"
2  #include "GrannyAPILogger.h"  #include "GrannyAPILogger.h"
3  GRANNY_CALLBACK(void) Callback(granny_log_message_type Type, granny_log_message_origin Origin, char const * Message, void * UserData);  
4    void __cdecl  Callback(granny_log_message_type Type, granny_log_message_origin Origin, char const * Message, void * UserData);
5    
6  GrannyAPILogger::GrannyAPILogger(void)  GrannyAPILogger::GrannyAPILogger(void)
7  {  {
8          granny_log_callback NewCallback;          granny_log_callback NewCallback;
9      NewCallback.Function = Callback;          NewCallback.Function = Callback;
10      NewCallback.UserData = NULL;          NewCallback.UserData = NULL;
11      GrannySetLogCallback(&NewCallback);          GrannySetLogCallback(&NewCallback);
12  }  }
13    
14  GRANNY_CALLBACK(void) Callback(granny_log_message_type Type, granny_log_message_origin Origin, char const * Message, void * UserData)  void __cdecl Callback(granny_log_message_type Type, granny_log_message_origin Origin, char const * Message, void * UserData)
15  {  {
16          assert(Message);          assert(Message);
17  }  }

Legend:
Removed from v.6  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.22