Browse Source

MethodBind: Make sure header order is kept

When clang-format sorts includes alphabetically, MethodBind breaks.
Trying to move the object.h include upward in method_bind.h does
not seem to fix the problem, this needs investigation.
Rémi Verschelde 8 years ago
parent
commit
8d3aedeefd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/method_bind.cpp

+ 3 - 0
core/method_bind.cpp

@@ -26,7 +26,10 @@
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 /*************************************************************************/
+// object.h needs to be the first include *before* method_bind.h
+// FIXME: Find out why and fix potential cyclical dependencies.
 #include "object.h"
 #include "object.h"
+
 #include "method_bind.h"
 #include "method_bind.h"