summaryrefslogtreecommitdiffstats
path: root/js/src/tests/style/BadIncludesOrder-inl.h
blob: 25a3c00d2d06e8195f85b802cc1cef635a292734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Note: Each #if scope gets checked separately.

// These are in reverse order!
#if A
#  include "vm/JSScript-inl.h"
#  include "vm/Interpreter-inl.h"
#  include "js/Value.h"
#  include "ds/LifoAlloc.h"
#  include "jsapi.h"
#  include <stdio.h>
#  include "mozilla/HashFunctions.h"
#endif

// These are in reverse order, but it's ok due to the #if scopes.
#if B
#  include "vm/Interpreter-inl.h"
#  if C
#    include "js/Value.h"
#    if D
#      include "jsapi.h"
#    endif
#    include <stdio.h>
#  endif
#  include "mozilla/HashFunctions.h"
#endif

#include "jstypes.h"
#include "vm/JSScript.h"  // out of order
#include "vm/JSFunction.h"
#include "vm/JSObject.h"