AtomicSharpAPI.cpp 956 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // The above copyright notice and this permission notice shall be included in
  3. // all copies or substantial portions of the Software.
  4. //
  5. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  6. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  7. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  8. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  9. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  10. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  11. // THE SOFTWARE.
  12. //
  13. #include "AtomicSharp.h"
  14. using namespace Atomic;
  15. extern "C"
  16. {
  17. ClassID csb_RefCounted_GetClassID(RefCounted* refCounted)
  18. {
  19. if (!refCounted)
  20. return 0;
  21. return refCounted->GetClassID();
  22. }
  23. RefCounted* csb_AtomicEngine_GetSubsystem(const char* name)
  24. {
  25. return AtomicSharp::GetContext()->GetSubsystem(name);
  26. }
  27. }