Update chef DSL

This commit is contained in:
Aoran Zeng 2025-08-10 12:26:09 +08:00
parent c9940ec71f
commit 82aafbca62
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -7,7 +7,7 @@
* Created On : <2025-08-09> * Created On : <2025-08-09>
* Last Modified : <2025-08-10> * Last Modified : <2025-08-10>
* *
* For chefs (recipe makers) to define a target * chef DSL: for chefs (recipe makers) to define a target
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
#pragma once #pragma once
@ -71,6 +71,17 @@ chef_forbid_user_define (Target_t *target)
} }
void
chef_set_note (Target_t *target, const char *note_zh, const char *note_en)
{
if (!target || !note)
return;
char *msg = CHINESE ? xy_strdup(note_zh) : xy_strdup(note_en);
target->note = msg;
}
void void
chef_set_contributors (Target_t *target, uint32_t count, ...) chef_set_contributors (Target_t *target, uint32_t count, ...)
{ {