JSErrorChecker.h 642 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include <Duktape/duktape.h>
  9. #include <Atomic/Core/Object.h>
  10. using namespace Atomic;
  11. namespace AtomicEditor
  12. {
  13. class JSErrorChecker : public Object
  14. {
  15. OBJECT(JSErrorChecker);
  16. public:
  17. /// Construct.
  18. JSErrorChecker(Context* context, duk_context* ctx);
  19. /// Destruct.
  20. ~JSErrorChecker();
  21. private:
  22. duk_context* ctx_;
  23. };
  24. }