Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can be | |
| 4 * found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 #include "native_client/src/shared/ppapi_proxy/ppruntime.h" | |
| 8 | |
| 9 __attribute__((constructor)) void CallIRTInit() { | |
|
pasko-google - do not use
2011/08/15 16:23:04
you could write a clarifying comment saying that i
halyavin
2011/08/16 09:05:37
I don't think that we need to comment all roads no
| |
| 10 if (IRTInit()) { | |
| 11 static const char fatal_msg[] = | |
| 12 "irt initialization (IRTInit) failed.\n"; | |
| 13 write(2, fatal_msg, sizeof(fatal_msg) - 1); | |
| 14 _exit(-1); | |
| 15 } | |
| 16 } | |
| OLD | NEW |