Chromium Code Reviews| Index: src/untrusted/irt/irt_entry_ppapi.c |
| =================================================================== |
| --- src/untrusted/irt/irt_entry_ppapi.c (revision 0) |
| +++ src/untrusted/irt/irt_entry_ppapi.c (revision 0) |
| @@ -0,0 +1,16 @@ |
| +/* |
| + * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. |
| + */ |
| + |
| +#include "native_client/src/shared/ppapi_proxy/ppruntime.h" |
| + |
| +__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
|
| + if (IRTInit()) { |
| + static const char fatal_msg[] = |
| + "irt initialization (IRTInit) failed.\n"; |
| + write(2, fatal_msg, sizeof(fatal_msg) - 1); |
| + _exit(-1); |
| + } |
| +} |