- file: bool fileExists
 - str: removed c++ string conversion
 - tracelog: added utf8 output for windows
This commit is contained in:
alessandrobason 2022-03-31 02:19:14 +01:00
parent bce93361b1
commit 915fd081f3
6 changed files with 23 additions and 10 deletions

7
str.h
View file

@ -2,7 +2,6 @@
#ifdef __cplusplus
extern "C" {
#include <string>
#endif
#include <stdint.h>
@ -16,11 +15,6 @@ extern "C" {
typedef struct str_t {
char *buf;
size_t len;
#ifdef __cplusplus
inline operator std::string() const {
return std::string(buf, len);
}
#endif
} str_t;
typedef struct {
@ -129,7 +123,6 @@ size_t strvFindFirstNotOf(strview_t ctx, strview_t view, size_t from);
size_t strvFindLastNot(strview_t ctx, char c, size_t from);
size_t strvFindLastNotOf(strview_t ctx, strview_t view, size_t from);
#ifdef __cplusplus
} // extern "C"
#endif