opengl.errors: Add a 'Debugging' function with separate bodies for debugging and not debugging.
This commit is contained in:
@@ -30,6 +30,18 @@ is
|
|||||||
"../source/platform/" & external ("opengl_platform", "egl") & "/private",
|
"../source/platform/" & external ("opengl_platform", "egl") & "/private",
|
||||||
"../source/platform/" & external ("opengl_platform", "egl") & "/private/thin");
|
"../source/platform/" & external ("opengl_platform", "egl") & "/private/thin");
|
||||||
|
|
||||||
|
package Naming
|
||||||
|
is
|
||||||
|
case Lace_shared.lace_Build_Mode
|
||||||
|
is
|
||||||
|
when "debug" =>
|
||||||
|
for Body ("openGL.Errors.Debugging") use "opengl-errors-debugging.adb";
|
||||||
|
|
||||||
|
when others =>
|
||||||
|
for Body ("openGL.Errors.Debugging") use "opengl-errors-not_debugging.adb";
|
||||||
|
end case;
|
||||||
|
end Naming;
|
||||||
|
|
||||||
|
|
||||||
package Builder renames Lace_shared.Builder;
|
package Builder renames Lace_shared.Builder;
|
||||||
|
|
||||||
|
|||||||
7
3-mid/opengl/source/opengl-errors-debugging.adb
Normal file
7
3-mid/opengl/source/opengl-errors-debugging.adb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
separate (openGL.Errors)
|
||||||
|
|
||||||
|
function Debugging return Boolean
|
||||||
|
is
|
||||||
|
begin
|
||||||
|
return True;
|
||||||
|
end Debugging;
|
||||||
7
3-mid/opengl/source/opengl-errors-not_debugging.adb
Normal file
7
3-mid/opengl/source/opengl-errors-not_debugging.adb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
separate (openGL.Errors)
|
||||||
|
|
||||||
|
function Debugging return Boolean
|
||||||
|
is
|
||||||
|
begin
|
||||||
|
return False;
|
||||||
|
end Debugging;
|
||||||
@@ -70,4 +70,9 @@ is
|
|||||||
end log;
|
end log;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function Debugging return Boolean is separate;
|
||||||
|
|
||||||
|
|
||||||
end openGL.Errors;
|
end openGL.Errors;
|
||||||
|
|||||||
@@ -22,4 +22,9 @@ is
|
|||||||
-- Clears any existing error.
|
-- Clears any existing error.
|
||||||
-- Sets 'Error_occurred' to true, if a GL error was detected.
|
-- Sets 'Error_occurred' to true, if a GL error was detected.
|
||||||
|
|
||||||
|
|
||||||
|
function Debugging return Boolean;
|
||||||
|
--
|
||||||
|
-- True when the build mode is
|
||||||
|
|
||||||
end openGL.Errors;
|
end openGL.Errors;
|
||||||
|
|||||||
Reference in New Issue
Block a user