mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +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);
|