Skip to content

Commit

Permalink
Comments only (forgot to commit to enclaves3 before merging)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Dec 2, 2023
1 parent 2fb2878 commit 1cd699d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/utils/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/** Number of nanoseconds to sleep before retrying a socket read. */
#define SOCKET_READ_RETRY_INTERVAL 1000000

/**
* The ID of this federate. For a non-federated execution, this will be -1.
* For a federated execution, it will be assigned in the generated code.
*/
int _lf_my_fed_id = -1;

/**
Expand Down
7 changes: 7 additions & 0 deletions test/src_gen_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#include "tag.h"
#include "environment.h"

/**
* This file enables unit tests to run without there having been an actual code generation
* from a Lingua Franca program. It defines (mostly empty) functions that would normally be
* code generated. Of course, this strategy will only work for tests that do not actually
* need functional versions of these functions.
*/

environment_t _env;

void _lf_initialize_trigger_objects() {}
Expand Down

0 comments on commit 1cd699d

Please sign in to comment.