py: Move to guarded includes for compile.h and related headers.
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
#ifndef __MICROPY_INCLUDED_PY_COMPILE_H__
|
||||
#define __MICROPY_INCLUDED_PY_COMPILE_H__
|
||||
|
||||
#include "py/lexer.h"
|
||||
#include "py/parse.h"
|
||||
#include "py/emitglue.h"
|
||||
|
||||
// These must fit in 8 bits; see scope.h
|
||||
enum {
|
||||
@@ -38,3 +44,5 @@ mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, uint emit_opt, bool is
|
||||
|
||||
// this is implemented in runtime.c
|
||||
mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_input_kind, mp_obj_dict_t *globals, mp_obj_dict_t *locals);
|
||||
|
||||
#endif // __MICROPY_INCLUDED_PY_COMPILE_H__
|
||||
|
||||
Reference in New Issue
Block a user