瀏覽代碼

REXM: Avoid updating metadata from `others` examples

pull/5214/head
Ray 2 週之前
父節點
當前提交
f76666af3f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      tools/rexm/rexm.c

+ 1
- 1
tools/rexm/rexm.c 查看文件

@ -2331,7 +2331,7 @@ static const char *GenerateUUIDv4(void)
// Update source code header and comments metadata // Update source code header and comments metadata
static void UpdateSourceMetadata(const char *exSrcPath, const rlExampleInfo *info) static void UpdateSourceMetadata(const char *exSrcPath, const rlExampleInfo *info)
{ {
if (FileExists(exSrcPath) && IsFileExtension(exSrcPath, ".c"))
if (FileExists(exSrcPath) && IsFileExtension(exSrcPath, ".c") && (!TextIsEqual(info->category, "others")))
{ {
// WARNING: Cache a copy of exSrcPath to avoid modifications by TextFormat() // WARNING: Cache a copy of exSrcPath to avoid modifications by TextFormat()
char exSourcePath[512] = { 0 }; char exSourcePath[512] = { 0 };

Loading…
取消
儲存