summaryrefslogtreecommitdiffstats
path: root/js/src/tests/style/BadIncludesOrder-inl.h
blob: 865c845681c8ef37fd46303889ca2ac5ad34bdfe (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/Interpreter-inl.h"
# include "jsscriptinlines.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 "jsobj.h"
#include "jsfun.h"      // out of order
#include "jsscript.h"
#include "jstypes.h"