editor config

This commit is contained in:
2025-05-26 22:20:55 -04:00
parent 32ad6e11fe
commit 06a741ec34
2 changed files with 34 additions and 1 deletions

33
.editorconfig Normal file
View File

@@ -0,0 +1,33 @@
root = true
[*.refactor]
indent_style = space
indent_size = 4
[*.md]
indent_style = space
indent_size = 4
[*.c]
indent_style = tab
indent_size = 4
[*.cpp]
indent_style = tab
indent_size = 4
[*.h]
indent_style = tab
indent_size = 4
[*.hpp]
indent_style = tab
indent_size = 4
[*.ps1]
indent_style = tab
indent_size = 4
[*.natvis]
indent_style = tab
indent_size = 4

View File

@@ -147,7 +147,7 @@ The actual macro uses farray helper macros:
```c
#define slice_arg_from_array(type, ...) & (tmpl(Slice,type)) { \
.ptr = farray_init(type, __VA_ARGS__), \
.len = farray_len( farray_init(type, __VA_ARGS__) \
.len = farray_len( farray_init(type, __VA_ARGS__)) \
}
```