Changeset 19684

Show
Ignore:
Timestamp:
09/21/08 23:02:11 (5 years ago)
Author:
tokuhirom
Message:

reindent & use utf8

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/src/lib.cc

    r19680 r19684  
    4949    if (script.IsEmpty()) { 
    5050        // Print errors that happened during compilation. 
    51         v8::String::AsciiValue error(try_catch.Exception()); 
     51        v8::String::Utf8Value error(try_catch.Exception()); 
    5252        printf("%s\n", *error); 
    5353        return false; 
     
    5555        v8::Handle<v8::Value> result = script->Run(); 
    5656        if (result.IsEmpty()) { 
    57         // Print errors that happened during execution. 
    58         v8::String::AsciiValue error(try_catch.Exception()); 
    59         printf("%s\n", *error); 
    60         return false; 
     57            // Print errors that happened during execution. 
     58            v8::String::Utf8Value error(try_catch.Exception()); 
     59            printf("%s\n", *error); 
     60            return false; 
    6161        } else { 
    62         if (print_result && !result->IsUndefined()) { 
    63             // If all went well and the result wasn't undefined then print 
    64             // the returned value. 
    65             v8::String::AsciiValue str(result); 
    66             printf("%s\n", *str); 
    67         } 
    68         return true; 
     62            if (print_result && !result->IsUndefined()) { 
     63                // If all went well and the result wasn't undefined then print 
     64                // the returned value. 
     65                v8::String::AsciiValue str(result); 
     66                printf("%s\n", *str); 
     67            } 
     68            return true; 
    6969        } 
    7070    }