kripken/emscripten — Issue #123: Boolean logic on function pointers seems to be broken
Author: bemasc
Created: 2011-11-23 21:35:39+00:00
State: open

The following code:

```C
if (!(io.read && io.seek && io.tell))
{
if (callback) {
callback(NULL, NESTEGG_LOG_DEBUG, "Failed to initialize context because "
"one of io.read (%x), io.seek (%x), or io.tell (%x) is NULL.",
io.read, io.seek, io.tell);
}
return -1;
}
```

When run, produces the following output in the (Firefox 7) javascript console:
```
Failed to initialize context because one of io.read (2), io.seek (4), or io.tell (6) is NULL.
```
This is using a recent git checkout of emscripten. I have tried to use the safest possible set of emscripten options.