Generate ids

This commit is contained in:
2026-05-17 14:00:33 +02:00
parent cd0cb20195
commit 87db03d189
3 changed files with 46 additions and 11 deletions

View File

@@ -404,7 +404,7 @@ inline void noh_sv_trim_space(Noh_String_View *sv);
Noh_String_View noh_sv_from_cstr(const char *cstr);
// Creates a string view from a string.
Noh_String_View noh_sv_from_string(const Noh_String *string);
Noh_String_View noh_sv_from_string(const Noh_String string);
// Compares two string views.
// Returns:
@@ -1009,10 +1009,10 @@ Noh_String_View noh_sv_from_cstr(const char *cstr) {
return result;
}
Noh_String_View noh_sv_from_string(const Noh_String *string) {
Noh_String_View noh_sv_from_string(const Noh_String string) {
Noh_String_View result = {0};
result.elems = string->elems;
result.count = string->count;
result.elems = string.elems;
result.count = string.count;
return result;
}