示例#1
0
const char*
CFCMethod_full_override_sym(CFCMethod *self) {
    if (!self->full_override_sym) {
        const char *Prefix = CFCMethod_get_Prefix(self);
        const char *cnick  = CFCMethod_get_class_cnick(self);
        self->full_override_sym
            = CFCUtil_sprintf("%s%s_%s_OVERRIDE", Prefix, cnick,
                              self->macro_sym);
    }
    return self->full_override_sym;
}
示例#2
0
文件: CFCMethod.c 项目: theory/lucy
static char*
S_full_method_sym(CFCMethod *self, CFCClass *invoker, const char *postfix) {
    const char *Prefix;
    const char *cnick;
    if (invoker) {
        Prefix = CFCClass_get_Prefix(invoker);
        cnick  = CFCClass_get_cnick(invoker);
    }
    else {
        Prefix = CFCMethod_get_Prefix(self);
        cnick  = CFCMethod_get_class_cnick(self);
    }
    return CFCUtil_sprintf("%s%s_%s%s", Prefix, cnick, self->macro_sym,
                           postfix);
}