Ejemplo n.º 1
0
    /// <summary>
    /// Gets xml tag for .vcxproj
    /// </summary>
    public String getExceptionHandlingValue(EKeyword keyword)
    {
        bool isCLangGccCompiler = keyword == EKeyword.Android;

        switch (ExceptionHandling)
        {
        default:
        case EExceptionHandling.Enabled:            // == SyncCThrow
            return((isCLangGccCompiler) ? "Enabled" : "SyncCThrow");

        case EExceptionHandling.Async:
            return((isCLangGccCompiler) ? "Enabled": "Async");

        case EExceptionHandling.Disabled:           // == NoExceptionHandling
            return((isCLangGccCompiler) ? "Disabled" : "false");

        case EExceptionHandling.Sync:
            return((isCLangGccCompiler) ? "Enabled" : "Sync");

        case EExceptionHandling.UnwindTables:
            return((isCLangGccCompiler) ? "UnwindTables" : "SyncCThrow");
        }
    }
Ejemplo n.º 2
0
 public KeyWord(EKeyword type, EDataType returnType, string value)
 {
     Type       = type;
     ReturnType = returnType;
     Value      = value;
 }