mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
16 lines
393 B
JavaScript
16 lines
393 B
JavaScript
|
//"use strict";
|
||
|
|
||
|
// HACK: This is a dummy library that forces ERRNO_CODES to be used, so it's not optimized away.
|
||
|
// Needed for BrowserFS.
|
||
|
|
||
|
var LibraryErrnoCodes = {
|
||
|
dummyErrnoCodes__deps: ['$ERRNO_CODES'],
|
||
|
dummyErrnoCodes: function() {
|
||
|
if (!ERRNO_CODES) {
|
||
|
console.error("ERRNO_CODES not imported!");
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
mergeInto(LibraryManager.library, LibraryErrnoCodes);
|