fork download
  1. typedef int (*GetterFunc)(void);
  2. typedef void (*SetterFunc)(int);
  3.  
  4. typedef struct
  5. {
  6. GetterFunc GetFoo;
  7. GetterFunc GetBar;
  8. SetterFunc SetFoo;
  9. SetterFunc SetBar;
  10. } Singleton;
  11.  
  12. Singleton* GetSingleton();
  13.  
  14.  
  15. int main(void)
  16. {
  17. Singleton s1;
  18. Singleton s2;
  19. }
  20.  
Success #stdin #stdout 0s 5616KB
stdin
Standard input is empty
stdout
Standard output is empty