contrib : cont [no ci]

This commit is contained in:
Georgi Gerganov 2025-01-11 16:22:58 +02:00
parent da47eb0650
commit f44939a6eb
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -74,7 +74,10 @@
- Declare structs with `struct x {}` instead of `typedef struct x {} x`
- In C++ code omit the `struct` keyword whenever it is not necessary
- Use the `_t` suffix when the types are supposed to be opaque to the user - it's not relevant to them if it is a struct or anything else
> [!NOTE]
> This guideline is yet to be applied to the `llama.cpp` codebase. New code should follow this guideline.
- Use the `_t` suffix when a type is supposed to be opaque to the user - it's not relevant to them if it is a struct or anything else
```cpp
typedef struct llama_context * llama_context_t;