Sha256: 1aba6a1c876723c86c5bae0ef11fe8c4905b4f33ccb371e509bf5f8c1e669148
Contents?: true
Size: 466 Bytes
Versions: 2
Compression:
Stored size: 466 Bytes
Contents
#include <ruby.h> #include <errors.h> void raise_max_capacity_reached_error(const char *expandable) { rb_raise(rb_eRuntimeError, "Maximum capacity reached for %s", expandable); } void raise_no_path_error() { VALUE DijkstraFastModule = rb_const_get(rb_cObject, rb_intern("DijkstraFast")); VALUE NoPathExistsError = rb_const_get(DijkstraFastModule, rb_intern("NoPathExistsError")); rb_raise(NoPathExistsError, "No path exists from source to destination"); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dijkstra_fast-1.5.3 | ext/dijkstra_fast/errors.c |
dijkstra_fast-1.5.2 | ext/dijkstra_fast/errors.c |