Address concerns in 5473393e30 (RL interface)

Fixes 5473393e30.

This:
- Puts RL code under the RL namespace to avoid name collisions
- Avoids usage of new/delete
- Adds more documentation
- Does general cleanup (const-correctness, move semantics, argument
types, early returns...)

Patch by: irishninja
Comments by: Vladislavbelov, wraitii
Differential Revision: https://code.wildfiregames.com/D2947
This was SVN commit r24631.
This commit is contained in:
wraitii
2021-01-15 16:30:05 +00:00
parent 6282960991
commit 6a67e9a52d
6 changed files with 297 additions and 251 deletions
+2
View File
@@ -23,6 +23,8 @@
#include "js/Initialization.h"
#include <list>
/**
* A class using the RAII (Resource Acquisition Is Initialization) idiom to manage initialization
* and shutdown of the SpiderMonkey script engine. It also keeps a count of active script contexts