mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-14 08:29:32 +08:00
Update chef DSL
This commit is contained in:
parent
c9940ec71f
commit
82aafbca62
@ -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, ...)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user