소스 검색

fix: small things in CONVENTIONS.md (#2536)

pull/2539/head
veclavtalica 2 년 전
committed by GitHub
부모
커밋
b1fb469e0d
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -3
      CONVENTIONS.md

+ 2
- 3
CONVENTIONS.md 파일 보기

@ -19,7 +19,7 @@ Operators | value1 - value2 | `int res = value - 5;`
Enum | TitleCase | `enum TextureFormat`
Enum members | ALL_CAPS | `PIXELFORMAT_UNCOMPRESSED_R8G8B8`
Struct | TitleCase | `struct Texture2D`, `struct Material`
Struct members |lowerCase | `texture.width`, `color.r`
Struct members | lowerCase | `texture.width`, `color.r`
Functions | TitleCase | `InitWindow()`, `LoadImageFromMemory()`
Functions params | lowerCase | `width`, `height`
Ternary Operator | (condition)? result1 : result2 | `printf("Value is 0: %s", (value == 0)? "yes" : "no");`
@ -52,7 +52,7 @@ switch (value)
```
- All conditions checks are **always between parenthesis** but not boolean values:
```c
if ((value > 1) && (value < 50) && valueActive))
if ((value > 1) && (value < 50) && valueActive)
{
}
@ -92,4 +92,3 @@ resources/characters/enemy_slime.png
resources/common/font_arial.ttf
resources/common/gui.png
```

불러오는 중...
취소
저장