No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

36 líneas
558 B

  1. #pragma once
  2. #include <stdint.h>
  3. #include <string.h>
  4. typedef int8_t s8;
  5. typedef int16_t s16;
  6. typedef int32_t s32;
  7. typedef int64_t s64;
  8. typedef uint8_t u8;
  9. typedef uint16_t u16;
  10. typedef uint32_t u32;
  11. typedef uint64_t u64;
  12. typedef float f32;
  13. typedef long double f64;
  14. #ifdef UNICODE
  15. typedef wchar_t path_char;
  16. #else
  17. typedef char path_char;
  18. #endif
  19. struct String {
  20. u32 length;
  21. char* data;
  22. };
  23. inline String make_heap_string(const char* str) {
  24. String ret;
  25. ret.length = strlen(str);
  26. ret.data = _strdup(str);
  27. return ret;
  28. }