<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_set_black_box_value</id>
	<title>Truxton set black box value - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_set_black_box_value"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_set_black_box_value&amp;action=history"/>
	<updated>2026-09-09T15:25:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_set_black_box_value&amp;diff=6482&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This function writes values to the Black Box about where you are in your source code.  =Syntax= &lt;source lang=&quot;C&quot;&gt; void truxton_set_black_box_value( uint64_t slot, uint64_t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_set_black_box_value&amp;diff=6482&amp;oldid=prev"/>
		<updated>2023-05-28T21:01:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This function writes values to the &lt;a href=&quot;/Black_Box&quot; title=&quot;Black Box&quot;&gt;Black Box&lt;/a&gt; about where you are in your source code.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; void truxton_set_black_box_value( uint64_t slot, uint64_t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This function writes values to the [[Black Box]] about where you are in your source code.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
void truxton_set_black_box_value( uint64_t slot, uint64_t value, uint64_t source_code_file_identifier, uint64_t line_number_in_the_source_code_file );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;slot&amp;lt;/code&amp;gt;==&lt;br /&gt;
The index of the 20 possible slots to write an integer value.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt;==&lt;br /&gt;
An integer value to be stored in the given slot.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;source_code_file_identifier&amp;lt;/code&amp;gt;==&lt;br /&gt;
An integer value that you created to represent the name of the source code file.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;line_number_in_the_source_code_file&amp;lt;/code&amp;gt;==&lt;br /&gt;
An integer value that you created to represent the name of the source code file.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;5,6&amp;quot;&amp;gt;&lt;br /&gt;
#define CHECK_SIZE_CPP (0x1122334455)&lt;br /&gt;
&lt;br /&gt;
int is_valid_size( file_object * f )&lt;br /&gt;
{&lt;br /&gt;
   truxton_set_black_box_value( 10, f-&amp;gt;bytes_per_page, CHECK_SIZE_CPP, __LINE__ );&lt;br /&gt;
   truxton_set_black_box_value( 11, f-&amp;gt;bytes_per_sector, CHECK_SIZE_CPP, __LINE__ );&lt;br /&gt;
&lt;br /&gt;
   if ( f-&amp;gt;bytes_per_page &amp;lt; 3 )&lt;br /&gt;
   {&lt;br /&gt;
      return( 0 );&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   truxton_set_black_box_source_code_location( CHECK_SIZE_CPP, __LINE__ );&lt;br /&gt;
&lt;br /&gt;
   if ( check_alignment( f ) == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      return( 0 );&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   truxton_set_black_box_source_code_location( CHECK_SIZE_CPP, __LINE__ );&lt;br /&gt;
&lt;br /&gt;
   if ( ( f-&amp;gt;bytes_per_sector % 512 ) == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      return( 1 );&lt;br /&gt;
   }&lt;br /&gt;
   &lt;br /&gt;
   truxton_set_black_box_source_code_location( CHECK_SIZE_CPP, __LINE__ );&lt;br /&gt;
&lt;br /&gt;
   return( 0 );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>