MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / can_use

Method can_use

tools/system_libs.py:414–420  ·  view source on GitHub ↗

Whether this library can be used in the current environment. For example, libmalloc would override this and return False if the user requested no malloc.

(self)

Source from the content-addressed store, hash-verified

412 raise NotImplementedError('Cannot instantiate an abstract library')
413
414 def can_use(self):
415 """Whether this library can be used in the current environment.
416
417 For example, libmalloc would override this and return False
418 if the user requested no malloc.
419 """
420 return True
421
422 def can_build(self):
423 """Whether this library can be built in the current environment.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected