void print_err() { printf("using System;\n\nnamespace LibuvSharp\n{\n\tpublic enum UVErrorCode\n\t{\n"); printf("\t\tOK = 0,\n"); #define XX(value, description) printf("\t\t/// <summary>\n" \ "\t\t/// %s\n" \ "\t\t/// </summary>\n" \ "\t\t%s,\n", description, #value); UV_ERRNO_MAP(XX) #undef XX printf("\t}\n}\n"); }
void print_err() { printf("using System;\n\nnamespace LibuvSharp\n{\n\tinternal enum uv_err_code\n\t{\n"); UV_ERRNO_MAP(UV_ERRNO_GEN) printf("\t}\n}\n"); }