Skip to content

Commit

Permalink
Move core/*.h to legacy_core/
Browse files Browse the repository at this point in the history
They will be removed once finishing refactoring core/.

ISSUE=#227
  • Loading branch information
romandev committed Feb 26, 2018
1 parent 16f8825 commit 8f1ebe5
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion core/idl_types.h → legacy_core/idl_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef CORE_IDL_TYPES_H_
#define CORE_IDL_TYPES_H_

#include "core/idl_base.h"
#include "legacy_core/idl_base.h"

struct IDLBoolean final : public IDLBaseHelper<bool> {};
struct IDLByte final : public IDLBaseHelper<int8_t> {};
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <napi.h>
#include <string>
#include <type_traits>
#include "core/idl_base.h"
#include "core/idl_types.h"
#include "legacy_core/idl_base.h"
#include "legacy_core/idl_types.h"

template <typename T, typename SFINAEHelper = void>
struct NativeTypeTraitsBase {
Expand Down
2 changes: 1 addition & 1 deletion template/bacardi_cpp.njk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef EXAMPLES_BACARDI_H_
#define EXAMPLES_BACARDI_H_

#include "core/bacardi.h"
#include "legacy_core/bacardi.h"

{% for interface in interfaces %}
#include "{{interface.idl_dir_name}}/{{interface.name | snakecase}}_bridge.h"
Expand Down
6 changes: 3 additions & 3 deletions template/interface_cpp.njk
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ if (info.Env().IsExceptionPending()) {

#include "{{idl_dir_name}}/{{name | snakecase}}_bridge.h"

#include "core/js_type_traits.h"
#include "core/native_type_traits.h"
#include "core/enum_validator.h"
#include "legacy_core/js_type_traits.h"
#include "legacy_core/native_type_traits.h"
#include "legacy_core/enum_validator.h"

void {{name}}Bridge::Init(Napi::Env env, Napi::Object exports) {
Napi::Function js_constructor =
Expand Down

0 comments on commit 8f1ebe5

Please sign in to comment.