Nife version Beta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.3 KiB

  1. /* Copyright (C) 2011-2022 Patrick H. E. Foubet - S.E.R.I.A.N.E.
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 3 of the License, or any
  5. later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>
  12. *******************************************************************/
  13. /* debug.h */
  14. #include <unistd.h>
  15. #ifndef __NIFE_DEBUG_H__
  16. #define __NIFE_DEBUG_H__
  17. extern int Debug;
  18. extern int InDebugFct;
  19. #define _IFD_BEGIN_ int fd; fd=dup(1); dup2(2,1); InDebugFct=1;
  20. #define _IFD_END_ dup2(fd,1); close(fd); InDebugFct=0;
  21. extern void D_Reset(void);
  22. extern void IFD_Update(void);
  23. extern void IFD_SaveLog(void);
  24. extern void IFD_DebugTOn(void);
  25. extern void IFD_DebugTOff(void);
  26. extern void D_Close(void);
  27. extern void D_Trace(char * M);
  28. extern void D_Tracenl(char * M);
  29. extern void D_TraceH(char * M, int l);
  30. extern void * Malloc(int s);
  31. extern void Free(void * A);
  32. #endif