module.cc (13291:ccbae1f89cd3) | module.cc (13303:045f002c325c) |
---|---|
1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 33 unchanged lines hidden (view full) --- 42namespace 43{ 44 45std::list<Module *> _modules; 46Module *_new_module; 47 48} // anonymous namespace 49 | 1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 33 unchanged lines hidden (view full) --- 42namespace 43{ 44 45std::list<Module *> _modules; 46Module *_new_module; 47 48} // anonymous namespace 49 |
50UniqueNameGen globalNameGen; 51 |
|
50Module::Module(const char *name) : 51 _name(name), _sc_mod(nullptr), _obj(nullptr), _ended(false), 52 _deprecatedConstructor(false), bindingIndex(0) 53{ 54 panic_if(_new_module, "Previous module not finished.\n"); 55 _new_module = this; 56} 57 --- 160 unchanged lines hidden --- | 52Module::Module(const char *name) : 53 _name(name), _sc_mod(nullptr), _obj(nullptr), _ended(false), 54 _deprecatedConstructor(false), bindingIndex(0) 55{ 56 panic_if(_new_module, "Previous module not finished.\n"); 57 _new_module = this; 58} 59 --- 160 unchanged lines hidden --- |