Skip to content

feat: Add string types #16

@Zffu

Description

@Zffu

Add the following types:

  • cstring: Represents a char pointer that must end with \0
  • staticstr: Represents a static defined string. Any string primitive that is hard coded will instantly be a staticstr to allow for performance
  • anystr: Represents any type of primitive string (either a cstring or a staticstring)
  • std:strings:lenstr: Represents a struct that contains a size and a null terminated string

The following should be classified as primitives and shadow function compatible:

  • cstring
  • staticstr
  • anystr

Furthermore, cstring can be passed as a ptr due to it's pointer nature.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions